package com.zhixi.pattern.notimportant.visitorpattern.operation;

/**
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/20 10:43
 */
public class Visitor implements IVisitor {

    @Override
    public void visit(CommonEmployee commonEmployee) {
        commonEmployee.report();
    }

    @Override
    public void visit(Manager manager) {
        manager.report();
    }
}
